package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 租户管理业务对象 sys_tenant
 *
 * @author ruoyi
 * @date 2022-03-20
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("租户管理业务对象")
public class SysTenantBo extends BaseEntity {

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;

    /**
     * 联系人
     */
    @ApiModelProperty(value = "联系人", required = true)
    @NotBlank(message = "联系人不能为空", groups = {AddGroup.class, EditGroup.class})
    private String contact;

    /**
     * 电话
     */
    @ApiModelProperty(value = "电话", required = true)
    @NotBlank(message = "电话不能为空", groups = {AddGroup.class, EditGroup.class})
    private String phone;

    /**
     * 租户名称
     */
    @ApiModelProperty(value = "租户名称", required = true)
    @NotBlank(message = "租户名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String name;

    /**
     * 租户编号
     */
    @ApiModelProperty(value = "租户编号", required = true)
    private String tenantId;

    /**
     * 租户主键
     */
    @ApiModelProperty(value = "租户主键")
    private String id;

}
